import request from '@/utils/request';

/**
 * 保存
 * @param {*} params
 */
export const save = params => {
  return request({
    url: '/wx/mp/config/save',
    data: params,
    method: 'post'
  });
};

/**
 * 更新
 * @param {*} params
 */
export const update = params => {
  return request({
    url: '/wx/mp/config/update',
    data: params,
    method: 'post'
  });
};

/**
 * 获取
 * @param {*} id
 */
export const get = id => {
  return request({
    url: '/wx/mp/config/get',
    data: {
      id: id
    },
    method: 'post'
  });
};

/**
 * 删除
 * @param {*} id
 */
export const remove = id => {
  return request({
    url: '/wx/mp/config/delete',
    data: {
      id: id
    },
    method: 'post'
  });
};

/**
 * 分页查询
 * @param {*} id
 */
export const page = params => {
  return request({
    url: '/wx/mp/config/page',
    data: params,
    method: 'post'
  });
};
